<?php 
	include_once 'thuvienham.php';
	include_once 'khoahoc_db.php';

	class khoahoc_bs 
	{
		//------------------Fields [5]------------------
			// #0
		private $MaKhoaHoc = "";
		public function SetMaKhoaHoc($MaKhoaHoc) { $this->MaKhoaHoc = $MaKhoaHoc; }
		public function GetMaKhoaHoc() { return $this->MaKhoaHoc; }
			// #1
		private $TenKhoaHoc = "";
		public function SetTenKhoaHoc($TenKhoaHoc) { $this->TenKhoaHoc = $TenKhoaHoc; }
		public function GetTenKhoaHoc() { return $this->TenKhoaHoc; }
			// #2
		private $NgayKhaiGiang = "0000-00-00";
		public function SetNgayKhaiGiang($NgayKhaiGiang) { $this->NgayKhaiGiang = $NgayKhaiGiang; }
		public function GetNgayKhaiGiang() { return $this->NgayKhaiGiang; }
			// #3
		private $MaTrangThai = -1;
		public function SetMaTrangThai($MaTrangThai) { $this->MaTrangThai = $MaTrangThai; }
		public function GetMaTrangThai() { return $this->MaTrangThai; }
			// #4
		private $ChuThich = "";
		public function SetChuThich($ChuThich) { $this->ChuThich = $ChuThich; }
		public function GetChuThich() { return $this->ChuThich; }

		//------------------Method------------------
		public function Them()
		{
			$data = new khoahoc_db();
			return $data->Them($this->MaKhoaHoc, $this->TenKhoaHoc, $this->NgayKhaiGiang, $this->MaTrangThai, $this->ChuThich);
		}

		public function Xoa()
		{
			$data = new khoahoc_db();
			return $data->Xoa($this->MaKhoaHoc);
		}

		public function CapNhat()
		{
			$data = new khoahoc_db();
			return $data->CapNhat($this->MaKhoaHoc, $this->TenKhoaHoc, $this->NgayKhaiGiang, $this->MaTrangThai, $this->ChuThich);
		}

		public function LayDanhSach()
		{
			$data = new khoahoc_db();
			return $data->LayDanhSach($this->MaKhoaHoc, $this->TenKhoaHoc, $this->NgayKhaiGiang, $this->MaTrangThai, $this->ChuThich);
		}

	}

